import ddddocr
from PIL import Image
import base64
from io import BytesIO
from ddddocr import DdddOcr


def dddd_ocr_text(image):
    encode=image.split(",")[1]
    decode=base64.b64decode(encode)
    # img=Image.open(BytesIO(decode))
    ocr=ddddocr.DdddOcr()
    t=ocr.classification(decode)
    return t


if __name__=="__main__":
    image=""
    text=dddd_ocr_text(image)
    print(text)

